package cn.itacm.pattern.creational.simpleFactory;

public class Factory {
	public static IProduct createProduct(ProductEnum enu) {
		IProduct product = null;
		switch (enu) {
			case ProductA:
				product = new ProductA();
				break;
			case ProductB:
				product = new ProductB();
				break;
		}
		return product;
	}
}
